import BasicLayout from "../layouts/BasicLayout";
import {createRoutes} from "../utils/core";
import Dashboard from './Dashboard';
import Ecg from "./Device/Ecg";
import Bp from "./Device/Bp";
import Spo from "./Device/Spo";
import DataBp from "./Data/Bp";
import DataSpo from "./Data/Spo";
import BluAp from "./Support/BluAp";
import PushSet from "./Push/PushSet"
import PushRecord from "./Push/PushRecord"
import Log from "./SystemSet/Log"
import System from "./SystemSet/System"

import Patient from "./User/Patient";
import DeviceSwagger from "./Account/List/DeviceSwagger";
import Login from "./User/Login";

const routesConfig = (app) => ([

  // {
  //   path: '/sign',
  //   title: '登录',
  //   indexRoute: '/sign/login',
  //   component: UserLayout,
  //   childRoutes: [
  //     Login(app),
  //   ]
  // },

  {
    path: '/',
    title: '系统中心',
    component: BasicLayout,
    indexRoute: '/dashboard',
    childRoutes: [
      Ecg(app),
      Bp(app),
      Spo(app),

      DataBp(app),
      DataSpo(app),

      BluAp(app),

      PushSet(app),
      PushRecord(app),

      Patient(app),

      Dashboard(app),

      Log(app),
      System(app),
      DeviceSwagger(app),
    ],
  }
])



export default app => createRoutes(app, routesConfig);
